# Copyright 2024 Guowei Ling.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("@yacl//bazel:yacl.bzl", "yacl_cc_binary")

package(default_visibility = ["//visibility:public"])

yacl_cc_binary(
    name = "sm2_example",
    srcs = [
        "ahesm2.cc",
        "ahesm2.h",
        "ciphertext.h",
        "config.cc",
        "config.h",
        "main.cc",
        "private_key.h",
        "public_key.h",
        "t1.h",
        "t2.h",
    ],
    deps = [
        "@yacl//yacl/crypto/ecc:spi",
        "@yacl//yacl/crypto/ecc/openssl",
        "@yacl//yacl/math/mpint",
        "@yacl//yacl/utils:cuckoo_index",  # 添加 cuckoo_index 依赖
        "@yacl//yacl/utils/spi",
    ],
)
